package com.ruoyi.generic.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.generic.domain.*;
import com.ruoyi.generic.mapper.*;
import com.ruoyi.generic.service.IGenericService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GenericService implements IGenericService {

    @Resource
    PublicOrgMapper publicOrgMapper;
    @Resource
    PublicAppSystemMapper publicAppSystemMapper;
    @Resource
    PublicDatabaseMapper publicDatabaseMapper;
    @Resource
    PublicExampleMapper publicExampleMapper;
    @Resource
    PublicFollowMapper publicFollowMapper;

    @Override
    public List<PublicOrg> queryOrgs() {
        return publicOrgMapper.selectList(new QueryWrapper());
    }

    @Override
    public List<PublicAppsystem> queryAppSystem() {
        return publicAppSystemMapper.selectList(new QueryWrapper());
    }

    @Override
    public List<PublicDatabase> queryDataBases() {
        return publicDatabaseMapper.selectList(new QueryWrapper());
    }

    @Override
    public List<PublicExample> queryExamples() {
        return publicExampleMapper.selectList(new QueryWrapper());
    }

    @Override
    public List<PublicFollow> queryFollows() {
        return publicFollowMapper.selectList(new QueryWrapper());
    }
}
